package com.bt7274.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * BT币变动表：用于记录BT币变动
 * </p>
 *
 * @author hp
 * @since 2025-03-25
 */
@TableName("bt_transaction")
public class BtTransaction implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 变动值
     */
    private Integer points;

    /**
     * 类型
     */
    private String type;

    /**
     * 规则id
     */
    private String ruleId;

    /**
     * 说明
     */
    private String description;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public String toString() {
        return "BtTransaction{" +
        "id = " + id +
        ", userId = " + userId +
        ", points = " + points +
        ", type = " + type +
        ", ruleId = " + ruleId +
        ", description = " + description +
        ", createdTime = " + createdTime +
        "}";
    }
}
